<%inherit file="/base.mako"/>
${h.link_to('List', h.url_for(action='index', id=None))}
<br/>
${h.form(h.url(action='save_edit'), method='post')}
Name: ${h.text_field('username', value=c.user.username)}
<br/>
Password: ${h.text_field('password', value=c.user.password)}
<br/>
Email: ${h.text_field('email', value=c.user.email)}
<br/>
Group: ${h.select('group_id',  h.format_options(c.groups, value_prop='uid', caption_prop='name', add_empty=False, selected_value=c.user.group.uid if c.user.group != None else None))}
<br/>
${h.submit(u'Save')}
${h.end_form()}